services:
  prometheus:
    image: registry.cn-hangzhou.aliyuncs.com/weizhihui/prometheus:v2.51.2
    container_name: prometheus
    restart: always
    user: root
    ports:
      - "9095:9090"
    volumes:
      - {{ monitoring_volumes }}/data:/prometheus
      - {{ monitoring_volumes }}/conf:/etc/prometheus
    command:
      - '--config.file=/etc/prometheus/prometheus.yaml'
    networks:
      - monitor

networks:
  monitor:
    external: true